package com.acme.bankapp.domain.bank;

public class SavingsAccount extends AbstractAccount {
	public SavingsAccount(int id, final double amount)
			throws IllegalArgumentException {
		if (amount < 0)
			throw new IllegalArgumentException(
					"Account is not added! Balance is negative");
		this.balance = amount;
		this.id = id;
	}
}